import requests
# 发送DELETE请求
url = 'https://httpbin.org/delete'
# 传参
params = {
    'a': 1,
    'b': 2,
    'name': '小明'
}
resp = requests.delete(url, params=params)
# print(resp)
print('响应状态码：', resp.status_code)
print('响应头：', resp.headers)
# 获取JSON响应体
print('响应体：', resp.json())